<?php
	require_once("./class/Include.php");
	$users = User::getAll();
	$lignes = Ligne::getAll();
	foreach($lignes as $ligne){
		$calque1 = Calque::create($ligne,1,"");
		$calque2 = Calque::create($ligne,2,"");
		foreach($users as $user){
			if($user->getRangAdmin()==0){
				$calque = Calque::create($ligne,3,"");
				UserCalque::create($user,$calque);
				UserCalque::create($user,$calque1);
				UserCalque::create($user,$calque2);
			}
		}
	}
?>